package com.IntelligentCommunity.es.domain.vo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Map;

@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel("插入Es数据实体")
public class EsDocInsertVo extends EsDocBaseVo {

    @ApiModelProperty("数据唯一id")
    private String id;

    @ApiModelProperty(value = "数据内容",required = true)
    private Map<String,Object> data;

    @ApiModelProperty("是否立即刷新磁盘")
    private boolean reflush = true;

    @ApiModelProperty("索引类型 1人脸 2车辆")
    private Integer flag;

}
